package com.example.zhilongzhang.constructionpayapp.bean;

import java.io.Serializable;
import java.util.List;

public class RecordListBean implements Serializable {

    /**
     * msg : 成功返回
     * code : 0
     * pagination : {"offset":0,"limit":10,"count":1,"page":1}
     * data : [{"payee":"管理员","amount":897.14,"comments":"微信收款","paymentCode":"P00002","remitter":"住户2","id":2,"paymentTime":"2019-04-09 14:30:39"}]
     * count : 1
     * limit : 10
     * page : 1
     */
    private String msg;
    private int code;
    private PaginationEntity pagination;
    private List<DataEntity> data;
    private int count;
    private int limit;
    private int page;

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setPagination(PaginationEntity pagination) {
        this.pagination = pagination;
    }

    public void setData(List<DataEntity> data) {
        this.data = data;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

    public PaginationEntity getPagination() {
        return pagination;
    }

    public List<DataEntity> getData() {
        return data;
    }

    public int getCount() {
        return count;
    }

    public int getLimit() {
        return limit;
    }

    public int getPage() {
        return page;
    }

    public class PaginationEntity {
        /**
         * offset : 0
         * limit : 10
         * count : 1
         * page : 1
         */
        private int offset;
        private int limit;
        private int count;
        private int page;

        public void setOffset(int offset) {
            this.offset = offset;
        }

        public void setLimit(int limit) {
            this.limit = limit;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getOffset() {
            return offset;
        }

        public int getLimit() {
            return limit;
        }

        public int getCount() {
            return count;
        }

        public int getPage() {
            return page;
        }
    }

    public class DataEntity implements Serializable{
        /**
         * payee : 管理员
         * amount : 897.14
         * comments : 微信收款
         * paymentCode : P00002
         * remitter : 住户2
         * id : 2
         * paymentTime : 2019-04-09 14:30:39
         */
        private String payee;
        private double amount;
        private String comments;
        private String paymentCode;
        private String remitter;
        private int id;
        private String paymentTime;

        public void setPayee(String payee) {
            this.payee = payee;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public void setComments(String comments) {
            this.comments = comments;
        }

        public void setPaymentCode(String paymentCode) {
            this.paymentCode = paymentCode;
        }

        public void setRemitter(String remitter) {
            this.remitter = remitter;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setPaymentTime(String paymentTime) {
            this.paymentTime = paymentTime;
        }

        public String getPayee() {
            return payee;
        }

        public double getAmount() {
            return amount;
        }

        public String getComments() {
            return comments;
        }

        public String getPaymentCode() {
            return paymentCode;
        }

        public String getRemitter() {
            return remitter;
        }

        public int getId() {
            return id;
        }

        public String getPaymentTime() {
            return paymentTime;
        }
    }
}
